import http from './request'
//获取数据
export const shiparchivesList = (data, current, size) => {
    return http({
        url: '/hongyun-training/shiparchives/list?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
// 新增或修改
export const existName = (name) => {
    return http({
        url: '/hongyun-training/shiparchives/existName?name=' + name,
        method: 'POST'
    })
}
// 新增或修改
export const shiparchivesSubmit = (data) => {
    return http({
        url: '/hongyun-training/shiparchives/submit',
        method: 'POST',
        data: data
    })
}
// 逻辑删除
export const shiparchivesRemove = (ids) => {
    return http({
        url: `/hongyun-training/shiparchives/remove?ids=${ids}`,
        method: 'POST'
    })
}
// 详情
export const shiparchivesDetail = (id) => {
    return http({
        url: `/hongyun-training/shiparchives/detail?id=${id}`,
        method: 'GET'
    })
}